package com.baseframe.mybatis.propes;


import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

@ConfigurationProperties("base.mybatis-plus")
@Getter
@Setter
public class BaseMybatisPlusProperties {

    /**
     * 开启sql日志
     */
    private Boolean sqlLog = true;

    /**
     * sql日志忽略打印关键字
     */
    private List<String> sqlLogExclude = new ArrayList<>();

    /**
     * 分页最大数
     */
    private Long pageLimit = 500L;

    /**
     * 溢出总页数后是否进行处理
     */
    protected Boolean overflow = false;

    /**
     * join优化
     */
    private Boolean optimizeJoin = false;

}
